Skip to content

Add brightness characteristic only for supported devices - #353

Open
dnicolson wants to merge 2 commits into
plasticrake:mainfrom
dnicolson:fix-stale-characteristic
Open

Add brightness characteristic only for supported devices#353
dnicolson wants to merge 2 commits into
plasticrake:mainfrom
dnicolson:fix-stale-characteristic

Conversation

@dnicolson

Copy link
Copy Markdown
Contributor

This adds the brightness characteristic only if the device supports it. Fixes #325.

This also removes the this.category === Categories.OUTLET conditional as it is already evaluated at https://github.com/plasticrake/homebridge-tplink-smarthome/blob/e0de1be/src/homekit-device/plug.ts#L48.

@dnicolson dnicolson changed the title Remove unneeded conditional statement Add brightness characteristic only for supported devices Oct 13, 2024
@PMilstone

Copy link
Copy Markdown

Why has this not been merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8.0.1: "Removing stale Characteristics" warnings

2 participants